function check() {
    var ypassword = $("#ypassword").val();
    var password = $("#password").val();
    var repassword = $("#repassword").val();
    $("#form1").removeAttr("action");
    if (ypassword.length < 6) {
        bottlecms.toast("请正确输入原密码");
        return false;
    }
    if (password.length < 6) {
        bottlecms.toast("请正确输入新密码");
        return false;
    }
    if (ypassword.length < 6) {
        bottlecms.toast("请正确输入重复密码");
        return false;
    }
    if (password != repassword) {
        bottlecms.toast("两次密码不一至");
        return false;
    }
    $("#form1").attr("action", "/m/ajax/center/setup/updatepassword");
    return true;
}